<%@ page import="java.util.List" %>
<%@ page import="com.neuedu.mvc.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/3/18
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--<%--%>
<%--    List<User> userList = (List<User>) request.getAttribute("userList");--%>
<%--%>--%>
<h3>用户列表: </h3>



<form action="${pageContext.request.contextPath}/user/update2" method="post">
     <table>
         <tr>
             <td>用户ID</td>
             <td>   <input type="text" name="userId" value="${user.userId}">  </td>
         </tr>
         <tr>
             <td>用户名</td>
             <td>   <input type="text" name="userName" value="${user.userName}">
                 <c:if test="${errs.userName != null }">
                     <div style="color:red">${errs.userName}</div>
                 </c:if>

             </td>
         </tr>

         <tr>
             <td>
                 <button type="submit">提交</button>
                 <button type="reset">重置</button>
             </td>

         </tr>
     </table>



</form>






</body>
</html>
